<?php if($this->upload->display_errors()){?>
<div class="error">
<?php echo $this->upload->display_errors('<div>', "</div>")?>
</div>
<?php  } ?>
<?php foreach($ds as $a){?>
<?php echo anchor(base_url().$this->config->item('crm_upload_path').$a->file_name, $a->file_descr, 'target="blank"')?> (<?php echo $a->file_size?>)Kb
<?php if(!$readonly) { ?>
<a href="javascript: if(confirm('<?php echo lang('ATTACH_REMOVE_CONFIRM')?>')) attach_remove(<?php echo $a->rid?>); void(0);"><?php echo img('public/img/icons/delete_inline.gif', 'border="0"')?></a><br>
<?php  } ?>
<?php }?>
